package hy;

import com.ImportDefReg;
import com.MyCfg3;
import com.MySelector;
import com.Stu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Import;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Import({Stu.class, MyCfg3.class, MySelector.class, ImportDefReg.class})
public class A {
    @Autowired
    Stu s;
    @RequestMapping("/m1")
    public String m1(){
        return s.toString();
    }
}
